#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
int fan(char a[], int x[])
{
	int i = 0,j;
	int count = 0;
	count = strlen(a);
	for (i = count - 1,j=0; i >= 0; i--)
		x[j++] = a[i] - '0';
	return count;
}
int main()
{
	char a[100] = { 0 }, b[100] = { 0 };
	int x[100] = { 0 }, y[100] = { 0 };
	int sum[200] = { 0 };
	int i,j,k,count1,count2;
	while (scanf("%s%s", a, b) != EOF)
	{
		count1=fan(a, x);
		count2=fan(b, y);
		for (i = 0; i < count1; i++)
		{
			k = i;
			for (j = 0; j < count2; j++,k++)
			{
				sum[k] += x[i] * y[j];
				if (sum[k] >= 10)
				{
					sum[k + 1] += sum[k] / 10;
					sum[k] %= 10;
				}
			}
		}
		for (i = k; i >= 0; i--)
			printf("%d", sum[k]);

	}
	return 0;
}